/**
 * 
 * @author Travis C Lynch
 * @version Jan 17 2012
 * 
 * <b>Discription</b> A small driver class that executes the Properclass that allows us
 * to test to see if the code works with user inmput
 * 
 */
import java.util.*;
public class Driver {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/** Variables title, firstName, middleInital, LastName as handlers of the imput stack*/
		String title, firstName, lastName;
		char middleInital;

		// TODO Auto-generated method stub
		Scanner kbd = new Scanner(System.in);
		System.out.print("Please enter your title (Dr., Mr.,Mrs.):");
		title = kbd.nextLine();
		System.out.print("Please enter your first name:");
		firstName = kbd.nextLine();
		System.out.print("Please enter your middle inital:");
		middleInital = ((kbd.nextLine().isEmpty())?('\0'):(kbd.nextLine().charAt(0)));
		System.out.print("Please enter your last name:");
		lastName = kbd.nextLine();
		System.out.println();
		ProperName user = new ProperName(title,firstName,middleInital,lastName);
		System.out.print(user);
	}

}
